<?php
// Define base path obtainable throughout the whole application
    defined('BASE_PATH')
        || define('BASE_PATH', realpath(dirname(__FILE__)));
     
        
    // Define path to application directory
    defined('APPLICATION_PATH')
        || define('APPLICATION_PATH', BASE_PATH . '/application');
    defined('PUBLIC_PATH')
        || define('PUBLIC_PATH', BASE_PATH . '/public');
    // Define path to file directory
    defined('APPLICATION_FILE')
        || define('APPLICATION_FILE', BASE_PATH . '/files');    
    // Define application environment
    defined('APPLICATION_ENV')
        || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development'));
	
	set_include_path(implode(PATH_SEPARATOR, array(
	    realpath(APPLICATION_PATH . '/../library'),
	    APPLICATION_PATH . '/modules/admin/models' ,
	    get_include_path(),
	)));
	define('BASE_URL','');
	define('APPLICATION_SCRIPTS',BASE_PATH.'/public/javacrips');
	define('LANGUAGE_PATH', BASE_PATH . '/system/languages');
	define('BLOCK_PATH', APPLICATION_PATH . '/blocks');
	define('BLOCK_URL',BASE_URL.'/application/blocks');
	define('MODULES_URL',BASE_URL.'/application/modules');
	define('SCRIPTS_URL',BASE_URL.'/public/javacrips');
	define('PUBLIC_URL',BASE_URL.'/public');
	define('IMAGE_URL',PUBLIC_URL.'/images');
	define('WEBMASTER_URL',PUBLIC_URL.'/images/webmasters');
	define('WEBMASTER_PATH',BASE_PATH.'/public/images/webmasters');
	define('ARTICLECAT_URL',PUBLIC_URL.'/images/articlesCat');
	define('ARTICLECAT_PATH',BASE_PATH.'/public/images/articlesCat');
	define('ARTICLE_URL',PUBLIC_URL.'/images/articles');
	define('PRODUCT_URL',PUBLIC_URL.'/images/products');
	define('ARTICLE_PATH',BASE_PATH.'/public/images/articles');
	define('PRODUCT_PATH',BASE_PATH.'/public/images/products');
	define('FILE_URL',PUBLIC_URL.'/images/files');
	define('FILE_PATH',BASE_PATH.'/public/images/files');